/**
 * @author wn
 * @date 2022/11/11 11:20:02
 * @description: 登陆 API
 */

import request from '@/utils/request'

/**
 * 登录页--注册
 * isMock = false
 * @returns Promise
 */

export const doRegister = obj => request('/register', obj, 'POST')

/**
 * 登录页--登陆
 * isMock = false
 * obj={email,pass}
 * @returns Promise
 */

export const doLogin = obj => request('/register', obj)

// const apiUrl = {
// 	userList: '/userList',
// 	chartDataOne: '/chartDataOne',
// 	chartDataTwo: '/chartDataTwo',
// 	chartDataThree: '/chartDataThree',
// 	chartDataFour: '/chartDataFour',
// }
